package com.zt.dev.accessProduct.mapper;

import com.zt.dev.accessProduct.pojo.AccessProductReport;
import com.zt.dev.accessProduct.pojo.AccessProductTemplate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccessProductMapper {

    List<AccessProductTemplate> selectAllTemplate();

    AccessProductTemplate selectTemplateById(Integer id);

    int insertTemplate(AccessProductTemplate accessProductTemplate);

    int deleteTemplate(Integer id);

    int updateTemplate(AccessProductTemplate accessProductTemplate);

    List<AccessProductTemplate> selectAllTemplatePage(@Param("jumpTotal") Integer jumpTotal, @Param("pageSize") Integer pageSize);

    List<AccessProductReport> selectReportPage(Integer jumpTotal, Integer pageSize);

    AccessProductReport selectReportById(Integer id);

    int insertReport(AccessProductReport accessProductReport);

    int deleteReport(Integer id);

    int updateReport(AccessProductReport accessProductReport);

}
